set interface state GigabitEthernet1/0/0 up  
set interface ip address GigabitEthernet1/0/0 192.168.10.1/24

set interface state GigabitEthernet1/0/1 up  
set interface ip address GigabitEthernet1/0/1 192.168.20.1/24


二层配置
set interface state GigabitEthernet1/0/0 up 
set interface state GigabitEthernet1/0/1 up
set interface l2 bridge GigabitEthernet1/0/0 200
set interface l2 bridge GigabitEthernet1/0/1 200


 配置 内核接口 和外网通信

create tap id 0
set int l2 bridge GigabitEthernet1/0/1 1
set int state GigabitEthernet1/0/1 up
set int l2 bridge tap0 1
set int state tap0 up




ifconfig tap0 192.168.20.3
